#! /bin/sh
### BEGIN INIT INFO
# Provides:          freq_mon_daemon
# Required-Start:    mysql
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:		0 1 6
# Short-Description: executed by init(8) upon entering runlevel 1 (single).
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /lib/lsb/init-functions

case "$1" in
  start)
	/usr/bin/screen -d -m -S freq_mon_daemon /usr/bin/freq_mon_daemon.sh
	/usr/bin/screen -d -m -S freq_mon_daemon24 /usr/bin/freq_mon_daemon24.sh
	;;
  restart|reload|force-reload)
	echo "Error: argument '$1' not supported" >&2
	exit 3
	;;
  stop)
	# No-op
	;;
  *)
	echo "Usage: $0 start|stop" >&2
	exit 3
	;;
esac
